<p-dialog header="{{title}}" [(visible)]="display" modal="modal" [responsive]="true" [width]="500" [minWidth]="200" (onHide)="closeBindTagMask(false)">
  <!--<p-panel header="{{title}}">-->
  <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
    <form [formGroup]="person" class="form-horizontal">
      <div class="ui-grid-row margin-bottom-1vw">
        <div class="ui-grid-col-3"></div>
        <div class="ui-grid-col-6 addr">
          <label for="" >标签id：</label>
          <p-dropdown [options]="ids" [(ngModel)]="tagID"></p-dropdown>

        </div>
      </div>
      <div class="ui-grid-row margin-bottom-1vw"
           *ngIf="!person.controls['remark1'].untouched && !person.controls['remark1'].valid">
        <div class="ui-grid-col-6">
          <div class="ui-message ui-messages-error ui-corner-all"  *ngIf="!person.hasError('maxLength','remark1')">
            <i class="fa fa-close"></i>
            不超过100字符
          </div>
        </div>
      </div>

      <div class="ui-grid-row margin-bottom-1vw">
        <div class="ui-grid-col-8"></div>
        <div class="ui-grid-col-2 padding-tblr">
          <button pButton type="submit" label="提交" (click)="formSubmit(false)"></button>
          <!--<button pButton type="submit" label="确认" (click)="formSubmit(false)" [disabled]="!person.controls['perName'].valid || !person.controls['pid'].valid || !person.controls['pwd'].valid || !person.controls['mobile'].valid" *ngIf="state ==='add'"></button>
          <button pButton type="submit" label="确认" (click)="formSubmit(false)" [disabled]="!person.controls['perName'].valid || !person.controls['pid'].valid || !person.controls['mobile'].valid" *ngIf="state ==='update'"></button>-->
        </div>
        <div class="ui-grid-col-2 padding-tblr">
          <button pButton type="button" label="取消" (click)="closeBindTagMask(false)"></button>
        </div>
      </div>
    </form>
  </div>
  <!--</p-panel>-->
</p-dialog>

